From: Keir Fraser Date: Thu, 11 Sep 2008 10:58:08 +0000 (+0100) Subject: xm: domid casting bug X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14111^2~6 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a3e1f638ca0fa0b0141bf3961c0867df5dffe366;p=xen.git xm: domid casting bug - This patch fixes a small casting bug in xm. The value of domid was not returned as an int, causing commands like 'xm vncviewer domid' to fail. Signed-off-by: George Coker --- diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index 548fbc9b30..596b943ef4 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -1812,7 +1812,7 @@ def domain_name_to_domid(domain_name): else: dom = server.xend.domain(domain_name) domid = int(sxp.child_value(dom, 'domid', '-1')) - return domid + return int(domid) def xm_vncviewer(args): autopass = False;